package com.superlc.ssm.modular.sys.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.superlc.ssm.modular.sys.model.SysRole;

@Mapper
public interface SysRoleDao {
    int insert(@Param("sysRole") SysRole sysRole);

    int insertSelective(@Param("sysRole") SysRole sysRole);

    int insertList(@Param("sysRoles") List<SysRole> sysRoles);

    int update(@Param("sysRole") SysRole sysRole);

    int addPermissionToRoleById(@Param("permissionId")Integer permissionId,@Param("roleId")Integer roleId);
}
